﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Photos
{
    public static class PhotoBLL
    {
        public static int GetPhotoCount(IList<Condition> conditionArray)
        {
            return PhotoDAL.GetPhotoCount(conditionArray);
        }

        public static List<PhotoEntity> GetPhotoList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return PhotoDAL.GetPhotoList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<PhotoEntity> GetPhotoList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return PhotoDAL.GetPhotoList(conditionArray, sortField, sortMode);
        }

        public static PhotoEntity GetPhoto(int photoID)
        {
            return PhotoDAL.GetPhoto(photoID);
        }

        public static int InsertPhoto(PhotoEntity photo)
        {
            return PhotoDAL.InsertPhoto(photo);
        }

        public static int UpdatePhoto(PhotoEntity photo)
        {
            return PhotoDAL.UpdatePhoto(photo);
        }

        public static int DeletePhoto(int photoID)
        {
            return PhotoDAL.DeletePhoto(photoID);
        }

        public static int SetPhotoEnable(int photoID)
        {
            return PhotoDAL.SetPhotoEnable(photoID);
        }

        public static int HitPhoto(int photoID)
        {
            return PhotoDAL.HitPhoto(photoID);
        }
    }
}
